<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <link href="../../css/functionHelp.css" rel="stylesheet">
    <title>LEFT</title>
    <meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
    <meta name="description" content="LEFT(来源字符串, 字符串长度) 得出由给定字符串值左端指定数量的字符构成的字符串值。">
</head>
<body dir="ltr" id="ffa5c34c1b" class="AppleTopic apd-topic"><a name="ffa5c34c1b"></a>
<figure class="topicIcon"><img src="Art/ixicnff.png" alt="" height="32" width="32"></figure>
<h1>LEFT</h1>
<p>LEFT 函数返回由给定字符串值左端指定数量的字符构成的<a href="ffa8575bef5.html#ffa8575bef5" class="xRef Aside">字符串值</a>。</p>
<div class="HIStrings"><p><strong class="Term">LEFT</strong>(<em>来源字符串, 字符串长度</em>)</p>
    <div class="HISubString"><p><em class="Term">来源字符串： </em><a href="ffa361bc137.html#ffa361bc137" class="xRef Aside">任何值</a>。
    </p></div>
    <div class="HISubString"><p><em class="Term">字符串长度： </em>可选<a href="ffa361b4f72.html#ffa361b4f72"
                                                                  class="xRef Aside">数字值</a>，指定返回的字符串所需的长度。<span
            class="DescriptionNotString"><em>字符串长度</em>必须大于或等于 1。</span></p></div>
</div>
<div id="ffa5bf8f26" class="Subhead"><h2 class="Name">注释</h2>
    <ul>
        <li><p>如果<em>字符串长度</em>大于或等于<em>来源字符串</em>的长度，得出的字符串将等于<em>来源字符串</em>。 </p></li>
    </ul>
</div>
<table data-type="1 column" aria-label="LEFT 函数示例">
    <thead>
    <tr>
        <th scope="col"><p class="TableHead">示例</p></th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td><p>=LEFT(“one two three”, 2) 得出“on”。</p>
            <p>=LEFT(“abc”) 得出“a”。</p>
            <p>=LEFT(60, 1) 得出“6”。</p></td>
    </tr>
    </tbody>
</table>
<div class="LinkUniversal"><strong>另请参阅</strong><a href="ffa5bee222.html#ffa5bee222" class="xRef AppleTopic">MID</a><a
        href="ffa5c487fd.html#ffa5c487fd" class="xRef AppleTopic">RIGHT</a></div>
</body>
</html>